using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class PickingUnitLoadConfiguration : EntityTypeConfiguration<PickingUnitLoad>
    {
        public PickingUnitLoadConfiguration()
        {
            Property(g => g.PickingUnitLoadID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
             Property(g => g.CustomerOrderNumber).IsOptional();
             Property(g => g.PositionIndex).IsOptional();
             Property(g => g.State).IsOptional();
             Property(g => g.UnitLoadID).IsRequired();
             Property(g => g.ClientID).IsOptional();
             Property(g => g.PickingOrderID).IsRequired();
        }
    }
}
